<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 71027
  Date: 2019/5/4
  Time: 18:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>宠物发布页面</title>
    <%@include file="common/common.jsp" %>

    <script src="${pageContext.request.contextPath}/sources/beautifulSelect_js/beautifulSelect.js"
            charset="utf-8"></script>

    <script src="${pageContext.request.contextPath}/static/js/petreleasepage.js" charset="utf-8"></script>
    <%--如何使用这个？JS文件。--%>
    <%--美化。--%>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/sources/Beautify-form/Beautify-form.css">
    <%--外部样式。--%>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/petreleasepage.css">
    <%--外部。--%>
</head>
<body>
<div class="mainbox">
    <form class="mainbox_form" action="#" method="post" name="mainbox_form">
        <ul>
            <li>
                <h2>联系我们</h2>
                <span class="required_notification">* 表示必填项</span>
            </li>
            <li>
                <label for="petname">宠物名字：</label>
                <input class="form-control" type="text" name="petname" value="小狗" required="required"/>
            </li>
            <li>
                <label for="petphotopath">宠物照片：</label>
                <input class="form-control" type="url" name="petphotopath"
                       value="http:" pattern="(http|https)://.+" required="required"/>
            </li>
            <li>
                <label for="gender">宠物性别：</label>
                <input type="radio" name="gender" value="0"
                       checked="checked"/>公
                <input type="radio" name="gender" value="1"/>母
            </li>
            <li>
                <label for="age">宠物年龄：</label>
                <input class="form-control" type="text" name="age" required="required"/>
            </li>
            <li>
                <label>宠物健康描述：</label>
                <textarea name="health" cols="60" rows="3" placeholder="" value="健康"></textarea>
            </li>
            <li>
                <label for="species">宠物种类：</label>
                <input type="text" class="form-control" name="species"/>
                <select style="width: 100px" class="input-group-addon" id="select" onchange="changespecies()"><%--这个不加name即可？？？--%>
                    <c:forEach items="${specieslist}" var="specieslist" varStatus="i">
                        <option value="${specieslist}">${specieslist}</option>
                    </c:forEach>
                </select>
            </li>
            <li>
                <label for="money">金额：</label>
                <input class="form-control" type="text" name="money" value="10"/>
            </li>
        </ul>
    </form>
</div>
<div id="hintspan" align="center"></div>
<span id="storeid" style="visibility: hidden">${storeid}</span>
<div align="center">
    <button class="btn-primary subbtn" onclick="release()">发布</button>
</div>
</body>
</html>
